export default {
  config: {
    category: 'XSwitch',
    // 控件左侧label内容
    label: '开关',
    // 表单name
    name: 'switch',
    activeValue: false,
    inactiveValue: true
  },
  name: 'XSwitch',
  render: (self, h) => {
    const data = self.ele
    return (
      <el-switch
        v-model={data.value}
        input={self.$emit('input', data.value)}
        active-value={data.activeValue}
        inactive-value={data.inactiveValue}
        class='form_input'
      />
    )
  }
}
